package com.chen.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chen.entity.Student;
import com.chen.entity.vo.StudentVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface StudentMapper extends BaseMapper<Student> {
    List<Student> showAll();

    List<Student> selectByMonth();

    List<Student> selectCs();

    /**
     * 第二题
     * @return
     */
    List<StudentVo> selectByTwo();

    /**
     * getCreditByName
     * @param name
     * @return
     */
   List<Map<String,Object>>  selectCreditByName(String name);
}